﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using TileEngine;

namespace CarlosMisfortune.model
{
    public class PlayerModel: GameObject
    {
        private Vector2 m_fallSpeed = new Vector2(0, 20);
        private float m_moveScale = 400.0f; //180.0f
        private float m_scale = 0.25f;
        private bool m_alive = true;
        private const int m_offsetX = 5;
        private bool m_isMovingLeft = false;
        private bool m_isMovingRight = false;


        public bool Alive
        {
            get { return m_alive; }
        }

        public bool IsMovingLeft
        {
            get { return m_isMovingLeft; }
            set { m_isMovingLeft = value; }
        }

        public bool IsMovingRight
        {
            get { return m_isMovingRight; }
            set { m_isMovingRight = value; }
        }

        public float MoveScale
        {
            get { return m_moveScale; }
            set { m_moveScale = value; }
        }

        public float OffsetX
        {
            get { return m_offsetX; }
        }

        public float Scale
        {
            get { return m_scale; }
        }

        public Vector2 FallSpeed
        {
            get { return m_fallSpeed; }
            set { m_fallSpeed = value; }
        }
        #region Constructor
        public PlayerModel()
        {

        }
        #endregion

        #region Public Methods
        public void Jump()
        {
            m_velocity.Y = -1000; //500
        }

        #endregion
    }
}
